<?php
/*
  $Id: forex_content.php $

  Copyright (c) 2011 nimgiaminh;

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License v2 (1991)
  as published by the Free Software Foundation.
*/

class osC_Boxes_forex_content extends osC_Modules {
    var $_title,
        $_code = 'forex_content',
        $_author_name = 'ESC',
        $_author_www = 'http://esc.vn/',
        $_group = 'boxes';

    function osC_Boxes_forex_content() {
        global $osC_Language;

        $this->_title = $osC_Language->get('box_forex_content_heading');
    }
 
    function initialize() {
        global $osC_Language, $osC_Database;

        $this->_content = '';
        $this->_content .= "<script type=\"text/javascript\" language=\"javascript\" src=\"http://vnexpress.net/Service/Gold_Content.js\"></script>\n";
        $this->_content .= "    <script type=\"text/javascript\" language=\"javascript\" src=\"http://vnexpress.net/Service/Forex_Content.js\"></script>\n";
        $this->_content .= "    <script type=\"text/javascript\" language=\"javascript\" src=\"http://vnexpress.net/Library/Common/Library.js\"></script>\n";
        $this->_content .= "    <script language=\"javascript\" type=\"text/javascript\">\n";
        $this->_content .= "        function writediv(opt)\n";
        $this->_content .= "        {\n";
        $this->_content .= "            document.getElementById('writediv').innerHTML = \"1\";\n";
        $this->_content .= "            document.getElementById('writediv').innerHTML += vForexs[ opt.options[opt.selectedIndex].value ];\n";
        $this->_content .= "            document.getElementById('writediv').innerHTML += \"=\";\n";
        $this->_content .= "            document.getElementById('writediv').innerHTML += vCosts[ opt.options[opt.selectedIndex].value ];\n";
        $this->_content .= "        }\n";
        $this->_content .= "    </script>\n";
        $this->_content .= "    <form id=\"moneys\" runat=\"server\">\n";
        $this->_content .= "        <div class=\"float-left rate-currency\" style=\"background:#f7f7f7;\" >\n";
        $this->_content .= "			<div class=\"rate-currency-wrap\">\n";
        $this->_content .= "				<div class=\"float-left\" style=\"width:180px; text-align:left\">\n";				
        $this->_content .= "                    <select id=\"Select1\"  onchange =\"writediv(this)\" class=\"float-left\" style=\"width:180px;\">\n";
        $this->_content .= "                        <option value =\"0\"><script>document.write(vForexs[0]);</script></option>\n";
        $this->_content .= "                        <option value =\"1\"><script>document.write(vForexs[1]);</script></option>\n";
        $this->_content .= "                        <option value =\"2\"><script>document.write(vForexs[2]);</script></option>\n";
        $this->_content .= "                        <option value =\"6\"><script>document.write(vForexs[6]);</script></option>\n";
        $this->_content .= "                       <option value =\"7\"><script>document.write(vForexs[7]);</script></option>\n";
        $this->_content .= "                       <option value =\"10\"><script>document.write(vForexs[10]);</script></option>\n";
        $this->_content .= "                   </select>\n";
        $this->_content .= "				</div>\n";
        $this->_content .= "				<div class=\"float-left display-rate size15 font-bold white bg-light60\"  id =\"writediv\"> 1 <script>document.write(vForexs[0]);</script> = <script>document.write(vCosts[0]);</script> .VND </div>\n";
        $this->_content .= "			</div>\n";
        $this->_content .= "		</div>\n";
        $this->_content .= "    </form> \n";
	}
 
    function install() {
        global $osC_Database;
 
        parent::install();

    }

}

?>